package cn.wolfcode.service;

import cn.wolfcode.domain.Department;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {
    /**
     * 部门增加
     * @param record 部门对象
     * @return
     */
    int insertDepartment(Department record);

    /**
     * 删除单个部门
     * @param id
     * @return
     */
    int deleteDepartment(Long id);

    /*
    * 更新部门信息
    * */
    int updateDepartment(Department record);

    /**
     * 查询单个部门信息
     * @param id
     * @return
     */
    Department selectDepartment(Long id);

    /*
    * 查询所有部门信息
    * */
    List<Department> selectDepartmentList();

    /*
    * 分页查询
    * */
    PageInfo<Department> query(QueryObject qo);
}
